package com.xingfudazi.app.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xingfudazi.common.annotation.Excel;
import com.xingfudazi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDateTime;

/**
 * 动态-评论对象 app_moment_comment
 * 
 * @author ruoyi
 * @date 2024-06-21
 */
@Data
public class AppMomentComment
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** 动态id */
    @Excel(name = "动态id")
    private Long mid;

    /** 用户id */
    @Excel(name = "用户id")
    private Long nid;

    /** 冗余名字 */
    @Excel(name = "冗余名字")
    private String nickName;

    /** 冗余头像 */
    @Excel(name = "冗余头像")
    private String avatar;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 父类id */
    @Excel(name = "父类id")
    private Long pid;

    /** 删除标志 */
    @TableField(fill = FieldFill.INSERT,value = "del_flag")
    private String delFlag;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;

}
